package io.renren.service.impl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.dao.RoomDao;
import io.renren.entity.RoomEntity;
import io.renren.service.RoomService;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

@Service("roomService")
public class RoomServiceImpl extends ServiceImpl<RoomDao, RoomEntity> implements RoomService {

	@Override
	public PageUtils queryPage(Map<String, Object> params) {
		Page<RoomEntity> page = this.selectPage(new Query<RoomEntity>(params).getPage(), new EntityWrapper<RoomEntity>());

		return new PageUtils(page);
	}

}
